Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

Assignment8#6

Open
CryptoKage2306 wants to merge 5 commits intomasterfrom
assignment8
Open

Assignment8#6
CryptoKage2306 wants to merge 5 commits intomasterfrom
assignment8

Conversation

@CryptoKage2306
Copy link
Owner

No description provided.

Copy link
Collaborator

@ayardi ayardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please incorporate the review comments. Also, make your code modular. Move controllers, routes into respective folders.

const text_tax = require('./sales_imported_text');
app.use("/", bodyParser.json());
app.use("/", bodyParser.text())
app.get("/", (req, res) =>{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting?

})
let restime=new Date().getTime();
res.end();
} if (req.headers["content-type"] == "text/plain") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same line?

regex = new RegExp('(\\d+)');
temp = sentences[i].split(regex);
quantity.push(temp[1]);
lastind=temp[2].lastIndexOf("at");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh ugh

sales=0
for(let i=1;i<sentences.length;i++){
sales+=text_tax.sales_tax(quantity[i-1],body[i-1],price[i-1])+text_tax.imported_tax(quantity[i-1],body[i-1],price[i-1]);
aftertax=parseFloat(price[i-1])+text_tax.sales_tax(quantity[i-1],body[i-1],price[i-1])+text_tax.imported_tax(quantity[i-1],body[i-1],price[i-1]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not just a murder. This is genocide!

down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('orders');
}
}; No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants